<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="Access-Control-Allow-Origin" content="oapi.dingtalk.com">
    <title>钉钉机器人控制器</title>
    <script src="js/jquery-2.2.4.min.js"></script>
    <style>
        #app {
            width: 500px;
            height: 600px;
            text-align: center;
            margin: 0 auto;
        }

        body {
            text-align: center;
        }
        #who{
            width: 400px;
            height: 30px;
        }
        #token{
            width: 400px;
            height: 30px;
        }
    </style>
</head>

<body>
<h1>钉钉机器人操作器</h1>
<div id="app">
    <h3>token</h3>
    <input v-model="token" id="token">
    <h3>这个人叫什么</h3>
    <input v-model="whois" id="who"/>
    <textarea name="text11" id="" cols="30" rows="10" v-model='intext'></textarea>
    <br>
    <button v-on:click='go'>发送</button>
</div>
<script src="js/vue.js"></script>
<script>
    var vm = new Vue({
        el: '#app',
        data: {
            intext: "",
            whois:"",
            token:""
        },
        methods: {
            go: function() {
                $.ajax({
                    type: 'GET',
                    url:"/travel/Jialong?message="+this.intext+"&token="+this.token+"&whois="+this.whois,
                    success: function(data) {
                        alert("发送成功");
                    },
                    error: function(d, msg) {
                        alert("error");
                    }
                })
            }
        }
    })
</script>
</body>

</html>